#ifndef WIDGETNODEMATERIAL_H
#define WIDGETNODEMATERIAL_H

#include <QWidget>
#include "../entity/EntitySceneNode.h"

namespace Ui {
class WidgetNodeMaterial;
}

class WidgetNodeMaterial : public QWidget
{
    Q_OBJECT

public:
    explicit WidgetNodeMaterial(QWidget *parent = nullptr);
    ~WidgetNodeMaterial();

public slots:
    void setupNode(const QString& name);

private slots:
    void on_checkBoxEnable_checkStateChanged(const Qt::CheckState &state);

    void slider_actionTriggered(int action);
    void lineEdit_editingFinished();
    void lineEditColor_textChanged(const QString& text);
    void renderMode_checkStateChanged(const Qt::CheckState& state);

private:
    void pbrEnable(bool enable);

private:
    Ui::WidgetNodeMaterial *ui;
    std::shared_ptr<EntitySceneNode> _currentNode;
};

#endif // WIDGETNODEMATERIAL_H
